package cn.tedu.mm.front.account.Service.impl;

import cn.tedu.mm.common.pojo.authentication.CurrentPrincipal;
import cn.tedu.mm.front.account.Service.IReadHistoryService;
import cn.tedu.mm.front.account.dao.persist.repository.IReadHistoryRepository;
import cn.tedu.mm.front.account.pojo.vo.ListRaedHistorryVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReadHistoryService implements IReadHistoryService {
    @Autowired
    private IReadHistoryRepository readHistoryRepository;
    @Override
    public List<ListRaedHistorryVO> listReadHistory(Long id) {
//        final Long id = currentPrincipal.getId();
        final List<ListRaedHistorryVO> list = readHistoryRepository.listReadHistory(id);
        return list;
    }
}
